package com.zpark.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @PackageName: com.zpark.controller
 * @ClassName: LoginController
 * @Description:
 * @author: RZS
 * @date: 2024/6/13  9:03
 */
@Controller
@RequestMapping("/login")
public class LoginController {

    @RequestMapping("/get_login_page")
    // 响应登录页面
    public String loginPage() {
        return "loginPage";
    }

    // 登录请求
    @PostMapping("/dl")
    public String login(String username, String password) {
        // 模拟登录
        return "index";
    }
}
